Further fix to same_vm check. This fixes intermittent failure of live
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 11:43:43 +0000 (11:43 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 11:43:43 +0000 (11:43 +0000)
localhost migration.

return [ test ] is not valid, simply [ test ] at the end of the function is the
correct syntax.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/block

index 6698df77c3f897b17ae5a352b4ca4317a7703957..6868edda45508d3d25f787be13266dca0c8492b0 100644 (file)
@@ -133,7 +133,7 @@ same_vm()
   local thisvm=$(xenstore-read "/local/domain/$thisdom/vm")
   local othervm=$(xenstore-read "/local/domain/$otherdom/vm")
 
-  return [ "$thisvm" == "$othervm" ]
+  [ "$thisvm" == "$othervm" ]
 }